//
//  Comment.swift
//  Weibo
//
//  Created by 孙明海 on 16/1/24.
//  Copyright © 2016年 孙明海. All rights reserved.
//

import UIKit

// 切换跟视图通知
let WBSwitchRootViewControllerNotification = "WBSwitchRootViewControllerNotification"

/// 选中图片通知
let WBStatusSelectedPhotoNotification = "WBStatusSelectedPhotoNotification"
/// 选中图片KEY - indexPath
let WBStatusSelectedPhotoIndexPathKey = "WBStatusSelectedPhotoIndexPathKey"
/// 选中图片的KEY - URL数组
let WBStatusSelectedPhotoURLsKey = "WBStatusSelectedPhotoURLsKey"

//统一外观颜色
let WBAppearenceColor: UIColor = UIColor.orangeColor()

func delay(delayTime: Double,finishedCall:()->()) {
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(delayTime * Double(NSEC_PER_SEC))), dispatch_get_main_queue(), { () -> Void in
        finishedCall()
    })
}